package com.xncoding.wechat.dto;

import lombok.Data;
@Data
public class FsBankCardRedirectOutput {
    private Boolean success;
    private String message;
    private Object data;

    public static FsBankCardRedirectOutput success(Object data) {
        FsBankCardRedirectOutput response = new FsBankCardRedirectOutput();
        response.setSuccess(true);
        response.setMessage("成功");
        response.setData(data);
        return response;
    }

    public static FsBankCardRedirectOutput error(String message) {
        FsBankCardRedirectOutput response = new FsBankCardRedirectOutput();
        response.setSuccess(false);
        response.setMessage(message);
        return response;
    }
}
